package com.lagou.service.impl;

import com.lagou.dao.DepartmentDao;
import com.lagou.domain.Department;
import com.lagou.service.DepartmentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
@Service
@Transactional
public class DepartmentServiceImpl implements DepartmentService {

    @Autowired
    private DepartmentDao departmentDao;


    @Override
    public Department findById(Integer id) {

        Department byId = departmentDao.findById(id);

        return byId;
    }


}
